{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{%block navbar %}
    <div class="container">
      <a class="btn btn-default pull-right" href="material"> 返回列表 <span class="glyphicon glyphicon-list"></span> </a>
    </div>
{%endblock%}
{%block page_content%}
<form action="" method="post" class="form" enctype="multipart/form-data" role="form">
{% for msg in get_flashed_messages() %}
    {{ msg }}
{% endfor %}

{{ form.hidden_tag() }}
{{ wtf.form_field(form.name) }}
{{ wtf.form_field(form.keywords) }}
<div class="form-group ">{{ form.storage_time.label }}
    <div class="input-group date form_datetime " data-date="" data-date-format="yyyy-mm-dd hh:ii:ss" data-link-field="storage_time" >
        <input class="form-control" size="16" type="text" value="" required>
        <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
        <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
    </div>
    <input type="hidden" id="storage_time" name="storage_time"  value=""/>
</div>
{{ wtf.form_field(form.location) }}
{{ wtf.form_field(form.description) }}
{{ wtf.form_field(form.picture) }}
<div class="form-group "><label class="control-label" for="expiration">过期时间?</label>
    <div class="input-group date form_date" data-date=""
         data-date-format="yyyy-mm-dd" data-link-field="expiration" data-link-format="yyyy-mm-dd">
        <input class="form-control"  size="16" type="text" value="" >
        <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
    </div>
    <input type="hidden" id="expiration" name="expiration" value="" />
</div>
{{ wtf.form_field(form.submit) }}
</form>
{%endblock%}
